Authentication check in added to application controler. Login and static
pages excluded