some login function

not much function yet, but…