register update

small change in sending api requests + required password and username