Minor edit to login function call