Formatting. Moved user management into the admin pages. Added checks.