Fixed user model using wrong query method.
Removed register button and add app structure to logged in page.
Added ensure_login.
Added main layout.