private async Task <Users> IsValidUser(string userName, string password) { var user = await rcs.GetUserByUserNameAndPassword(userName, password); if (user != null) { DataStore.setUserID(user.ID); DataStore.setName(user.Name); DataStore.setModirate(user.modirate); DataStore.setRegon(user.regon); DataStore.setRole(user.role); } return(user); }