Move profile helpers out of application_helper
Improve profile test field validation