Added user controller and refined user management.