fixed bugs for validation, registration form