fixes ajax check of profile photo