ajax update for sign in and sign-up