add login logout for user