Updated profile class to get rid of bugs with the file upload