Added errors
Added $ to end
Freshen controller type
Added empty route
Added Basic auth middleware