photo upload button is deactivated if there is no internet connections