Fixed the regular expression and added a test that a user should have a correctly formatted profile_name