change the logic when user has login