edit user page and validate avatar MIME type