added photo feature to profiles, and fixed error messages