Add log content, add index a logout method, add in templates a redirection if the user is not login.