Update application.index to redirect to appropiate page when non logged, logged and company logged