error message is added is user list gets empty