created basic login mechanics
added sessions to the login process