Enabled output buffering
Fixed redirect url to include base_url
Removed some old registry stuff from controller class