Fixed some sintaxe errors
Added admin authentication