refactoring profiles - validate specific parts of the the credentials portion, general cleanup