added loginForm, process Login, and checking if the user is logged in