indentation fixes, user.authenticated check around the whole angular
controller