Register user with ajax