User model with test for email and password valid.