added validation and test for profile name bug - one test still doesn't work