fixed api/users update to work like create. added some additional error handling