Extended CI controller with autentication related code.