now added login basic function