Login and logoff functionality with data stored in local storage