Added return http.Error and moved header status set to the end of new user function
Fixed post user form parameters