showing error for invalid email and duplicate usernames for #191