Moved login to core authentication service.