Fix flash messages for admin page and home page