Fixed login error

Changed the name of a function to the correct name since i changed the
function name but forgot to change it in a section of the code.