fixed bug in login @fmackojc