check for login on change main photo