Added function for displaying error and succes messages
Updated display error on pages with no acces