Adds profile picture upload validation in javascript.