Add two methods for validation login and email