if ($file["CoachPhoto"]["name"]) {
        if ((($file["CoachPhoto"]["type"] == "image/gif")
            || ($file["CoachPhoto"]["type"] == "image/jpeg")
            || ($file["CoachPhoto"]["type"] == "image/pjpeg")
            || ($file["CoachPhoto"]["type"] == "image/png"))