src/login.c: Bind user state functions