login handling almost done
login handling almost done