implemented logout functionality
implemented cookie class and updated users for remember me functionality