trying to post to server using angular