Validated Login and Registration Forms with AngularJS