add user email validation and fix bug of default user priority.