creates a better user experience while page loads. removed unwanted empty alert box while no message is set.