ctrlLogin, ctrlRegistration validation