CodeIgniter Ajax ogin Handler - generic