upload image and login user