register page more user friendly with ajax