login part almost done