Added login/logout and remember me functionalities