modified regular expression to fix bug with user profile validation