login fix and image upload feature