fixed up bootstrapButton to only show animation when page is valid