Dr UN granted bail by a court; orders him to go for a mental check-up