User management script modified