Modifying profile credentials for better error messages