post image to server and some changes with login