add close button for error message in login