implemented login and user list functions