add function register user and upload image
fix upload image and user id to server