create login form with email validation