[Finish #69485280] user will see an error message if they login with an invalid email

also refactored user registration in tests into a before block

Signed-off-by: Mark Evans <twenty4play@gmail.com>