added restful endpoint for craeting user