Client-side login / register using localStorage.
This is a protected area. It reads the current user from localStorage.