add login logout and user authentication