Fixed a bug where the charity logged intemplate was visible for a bit
before being refirected to the login page