Why limitation error message is not showing correctly?