user registration with ajax now working