Forgot to declare isUserExists() function. #fixed