A simple front end mock up of an AngularJS authentication system