Restricted login pages, added viewport, fixed flash messages