added login/logout feature in application