fixed sending mail after user's registration