add avatar upload and frontend jQuery file validation