Form input from modal window using AngularJs