checks whether user exists