Profile image uploading is functional.
Added validation for the type of files allowed.
Added jQuery optimization.