Added loader upon submit