Fix login endpoint when missing params