ended validation for user registration and to move all js code in
separeted file