added username and email trim rule
added message config