Added some client side input validation with AngularJs