Edit login call function