Added check to ensure unique usernames