Fixed issues relating to the flash messages and site lockdown.