Changed email to username in the loginCtrl.js file.
Added the ng-models & made the form validation.