Fixed local login to work with passport