Updated LoginBean with how the login() function would work.