Minor changes
-added check for file size and type. only images of maximum size of 5MB are allowed to be uploaded.