Refactoring some auth stuff on front-end
Scrutinizer, syntax updates and more.