Implemented login/logout & authorization