added registration system and uploading to remote server