crude implementation of localStorage for user data