changed code for  upload and signin