A rails plugin handling login stuff in controller