resize big photo if too big
added upload validation