validated form input and created login page