Implemented Ajax check when registering