changes made for setting loggedInUser in session