getting login data first