login funcs added