added user list and fixed error for register