Some fixes, start work on the admin panel and add auth check.