implemented API to create user and return the newly created location