testing to see if user is valid