Add sessions controller to login through api