Cleaned and fixed the custom profile slug setting and error handling