worked on profiles; added error message views templates if a profile is missing