Implemented login/logout actions