fixed login issues with new UserSessionBean, Refactoring