Error checking and check for duplicate usernames, helpful error messages.