mend

better login handling