update login authentication, loginbean, and logout functionality