Bug fix to hide create button on error