added basic login fixes.