checks for existing username and email