error fixed, flash created for mismatched passwords and duplicate email addresses