Checks whether user has nickname in database.