image upload saving and login authenticated