Bug fix to hide create button on error

Fix to hide the create new patient button on error for FE