Added tests for email validation and regex validation in user model.