Clean up structure

* Check globally if user is logged in
* Templating improved
* Renamed email variable to user_id