post image with validation

only works on local host still. validation checks if file size is < 5MB
and that file extension is one of the following: jpg, jpeg, png, or bmp