Add admin security and fix registration