Updated user sessions and added login form