Added flash messages functionality. Admin page now redirects to home with an error message