Updated layout.html template with metavan code.
Added form code to add an entry if a user has been authenticated.