add Handling User States in AngularJS post