abstracted checks for username and email address in use and corresponding errors