Add checkUser method to verify if user exists.