fixed ajax bug with logging out then signing up