Changed div to form and ng-click to ng-submit