public User CheckEmailAndPassword(string Email, string Password) { User user = user_db.GetUser(Email); if (user != null) { if (user.email == Email && user.password /*.ToLower()*/ == Password /*.ToLower()*/) { return(user); } } return(null); }