public Register Login(Login r) { Register obj = rp.FindByEmailandPass(r.Email, r.Password); if (obj == null) { return(null); } else { return(obj); } }