Added try-catch for login session bean