bug fixed for regular expression, profile controller added