created a working login form