added check to get_username() function to enforce unique usernames.