main page login and registration validation + edit profile